package cn.edu.sdjzu.xg23.kcsj01_backend.service.impl;


import cn.edu.sdjzu.xg23.kcsj01_backend.entity.Subject;
import cn.edu.sdjzu.xg23.kcsj01_backend.mapper.SubjectMapper;
import cn.edu.sdjzu.xg23.kcsj01_backend.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SubjectServiceImpl implements SubjectService {
    @Autowired
    SubjectMapper subjectMapper;
    @Override
    public List<Subject> getAllSubjects() {
        return subjectMapper.getAllSubjects();
    }
}
